package com.clay.Proxy.staticProxy;

/**
 * @Author : clay
 * @Description:
 * @Date: Create in 7:20 2021/3/17
 * @Modified By:
 */
public class proxyTeacherDao implements ITeacherDao {
    private ITeacherDao teacherDao;

    public proxyTeacherDao(ITeacherDao teacherDao)
    {
        this.teacherDao=teacherDao;
    }

    public proxyTeacherDao() {

    }

    public void teach() {
        System.out.println("授课前的准备工作");
        teacherDao.teach();
        System.out.println("授课结束");
    }
}
